﻿$(document).ready(function () {
    var swfVersionStr = "9.0.124";

    var xiSwfUrlStr = RootPath + "scripts/playerProductInstall.swf";

    var flashvars = {
        UploadUrl: UploadUrl,
        AllowTypes: "*.ppt; *.pptx;*.doc; *.docx;*.xls; *.xlsx;*.pdf;*.txt;*.jpg;*.jpeg;",
        AllowTypeName: "支持类型(ppt|pptx|doc|docx|xls|xlsx|pdf|txt|jpg|jpeg)",
        AllowFileCount: MaxFileCount,
        AllowMaxSize: MaxRequestLength,
        returnFunction: "UploadComplete",
        CancelFunction: "funcCancel",
        ReselectFunction: "funcReSelected",
        localeChain: "zh_cn"
    };
    var params = {

    }
    params.quality = "high";
    params.bgcolor = "#ffffff";
    params.allowscriptaccess = "sameDomain";
    params.allowfullscreen = "true";
    var attributes = {};
    attributes.id = "UploadFile";
    attributes.name = "UploadFile";
    swfobject.embedSWF(
                    RootPath + "scripts/BatchUpload.swf", "flashContent",
                    "580px", "190px",
                    swfVersionStr, xiSwfUrlStr,
                    flashvars, params, attributes);
    swfobject.createCSS("#flashContent", "display:block;text-align:left;");
});